<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.medicalsystem.wx.model.UserModel" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
UserModel m=(UserModel)request.getSession().getAttribute("userModel");
String username=(m==null)?"":m.getUserName();
%>

<!DOCTYPE html>
<html>

<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>智能问诊平台</title>
<meta charset="UTF-8">
<meta name="viewport" id="view" name="view" content="width=device-width,height=device-height, initial-scale=1.0, user-scalable=no,minimum-scale = 1.0,maximum-scale = 5.0," />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="description" content="人体图">
<link rel="stylesheet" href="<%=basePath%>css/wx.css" />
<link rel="stylesheet" href="<%=basePath%>css/weui.css" />
<link rel="stylesheet" href="<%=basePath%>css/example.css" />
<script type="text/javascript" src="./js/jquery-1.11.3.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>js/bootstrap-3.3.5-dist/js/bootstrap.js"></script>
<script src="<%=basePath%>js/bootstrap-table/bootstrap-table-all.min.js"></script>
<script
	src="<%=basePath%>js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script
	src="<%=basePath%>js/bootstrap-jquery-plugin/jquery.bootstrap.js"></script>
<script
	src="<%=basePath%>js/bootstrap-multiselect/bootstrap-multiselect.js"></script>
<script
	src="<%=basePath%>js/bootstrap-3.3.5-dist/js/bootstrap-datetimepicker.js"></script>

<script type="text/javascript" src="<%=basePath%>js/jquery.js"></script>
<script type="text/javascript" src="<%=basePath%>js/zepto.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/example.js"></script>
<script type="text/javascript" src="<%=basePath%>js/wx.js"></script>
<script type="text/javascript" src="<%=basePath%>js/poirt.js"></script>

<!-- start -->
<link rel="stylesheet" href="<%=basePath%>css/common.css"
	type="text/css" />
<!-- end -->
<style type="text/css">
html {
	background-color: #EEEEEE;
}
/*<!-- start -->*/
img {
	max-width: none;
}
.search{
width: 95%;
height: 40px;
text-align: center;
margin-top: 5px;
background:#fff; 
border: 1px solid #c0c0c0;
padding:2px;
-webkit-border-radius:22px;
-moz-box-shadow:0;
}
</style>
</style>
</head>
<script type="text/javascript">
var username="<%=username%>";
var isOpen=true;//放置重复提交
var storage = window.localStorage;
$(function(){  
   if(username==""){
   var url="<%=basePath%>jsp/login.jsp?iswx=1";
   window.location.href = url;
   }
   storage.setItem("username", username);
   
}); 

</script>

<body >
	<main>

		<section class="main_con">
			<div class="box_bg22" id="boxbg">
				<!--成年男正反面  -->
				<div id="mzm" style="display:none;position:relative;top:0px;">
					<!-- strart -->
					<div class="canvas_box" style="width: 90%;">
					
						<img id="maleck_img" class="ck_img" src="images/man_1.png" style="text-shadow: none;display: block" ><!-- 成年男正面 -->
						<img id="maleck_img1" class="ck_img"  src="images/MMF.png" style="text-shadow: none;display: none"><!-- 成年男背面 -->
						<img id="femaleck_img" class="ck_img"  src="images/woman1.png" style="text-shadow: none;display: none"><!-- 成年女正面 -->
						<img id="femaleck_img1" class="ck_img"  src="images/womanfan1.png" style="text-shadow: none;display: none"><!-- 成年女背面 -->
						<img id="girlck_img"  class="ck_img"  src="images/girlz.png" style="text-shadow: none;display: none"><!-- 儿童女正面 -->
						<img id="girlck_img1"  class="ck_img"  src="images/girlfan.png" style="text-shadow: none;display: none"><!-- 儿童女背面 -->
						<img id="boyck_img" class="ck_img"  src="images/child.png" style="text-shadow: none;display: none"><!-- 儿童男正面 -->
						<img id="boyck_img1" class="ck_img"  src="images/childfan.png" style="text-shadow: none;display: none;"><!-- 儿童男背面 -->
						<canvas id="myCanvas" onclick="vControl('GETMOUSEPOSINPIC',this)"
							width="800" height="800" style="position:absolute;top:0;left:0;">
					</canvas>
						<div style="width:80px;;height: auto;background-color: rgba(0,0,0,0);position:absolute;top:0;right:0;text-align: center;margin-top: 10px;margin-right: 5px;" >
						<a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary" style="margin:10px ;margin:7px;background-color: blue" onclick="wholeBody();">全&nbsp;&nbsp;&nbsp;身</a>
						<a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary" style="margin:10px ;margin:7px;" onclick="turn();">转&nbsp;&nbsp;&nbsp;身</a>
						<a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary" style="margin:10px ;margin:7px;" onclick="changeRole();" >角&nbsp;&nbsp;&nbsp;色</a>
						<a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary" style="margin:10px ;margin:7px;" onclick="query();" >搜&nbsp;&nbsp;&nbsp;索</a>
						</div>
					</div>
					<div class="big-container" id="big-container">
					</div>

				</div>
				<!--成年男反面  -->

				<!-- 成年女正面 -->
			</div>
			</div>
<!-- 			数据加载div -->
			<div id="loadingToast" class="weui_loading_toast" style="display: none;">
				<div class="weui_mask_transparent"></div>
				<div class="weui_toast">
					<div class="weui_loading">
						<div class="weui_loading_leaf weui_loading_leaf_0"></div>
						<div class="weui_loading_leaf weui_loading_leaf_1"></div>
						<div class="weui_loading_leaf weui_loading_leaf_2"></div>
						<div class="weui_loading_leaf weui_loading_leaf_3"></div>
						<div class="weui_loading_leaf weui_loading_leaf_4"></div>
						<div class="weui_loading_leaf weui_loading_leaf_5"></div>
						<div class="weui_loading_leaf weui_loading_leaf_6"></div>
						<div class="weui_loading_leaf weui_loading_leaf_7"></div>
						<div class="weui_loading_leaf weui_loading_leaf_8"></div>
						<div class="weui_loading_leaf weui_loading_leaf_9"></div>
						<div class="weui_loading_leaf weui_loading_leaf_10"></div>
						<div class="weui_loading_leaf weui_loading_leaf_11"></div>
					</div>
					<p class="weui_toast_content">请稍候...</p>
				</div>
			</div>
		</section>
		<section class="menu" style="height: 627px; display: none;">
			<span class="b_mark" style="display: none;"></span>
			
			<div class="menu_con" style="background-color: #fff;overflow: scroll; ">
				<p class="m_tit" style="font-size: 16px;">相关病症</p>
				<ul class="inquiry" id="inquiry" >
<!-- 					<li onclick="startInquiry();"><a herf="javascript:void();">鼻腔感染</a></li> -->
<!-- 					<li onclick="startInquiry();"><a herf="javascript:void();">鼻腔出血</a></li> -->
<!-- 					<li onclick="startInquiry();"><a herf="javascript:void();">鼻中隔血肿</a></li> -->
<!-- 					<li onclick="startInquiry();"><a herf="javascript:void();">厌臭症 -->
<!-- 					</a></li> -->
<!-- 					<li onclick="startInquiry();"><a herf="javascript:void();">上颌窦息肉</a></li> -->
				</ul>
			</div>

		</section>
		<!-- 选择年龄 -->
		<section class="leftmenu" style="height: 627px; display: none;">
			<span class="bg_mark" style="display: none;"></span>
			<!-- 选择年龄开始 -->
			<div class="leftmenu_con" id="isage" style="background-color: #fff;width: 90%;height:auto;margin-top: 30%;margin-left: 5%;text-align: center;">
				<p class="m_tit" style="font-size: 16px;padding-top: 5px;">请填写资料（不填写则默认为正常值）</p>
				<div class="weui_cells weui_cells_radio">
            
<!-- 			<div class="weui_cell"> -->
<!--                 <div class="weui_cell_hd"><label class="weui_label">血压：</label></div> -->
<!--                 <div class="weui_cell_bd weui_cell_primary"> -->
<!--                     <input class="weui_input" type="number" pattern="[0-9]*" placeholder="收缩压" style="width:30%" id="sYS"  value="">/&nbsp; -->
<!--                     <input class="weui_input" type="number" pattern="[0-9]*" placeholder="舒张压" style="width: 30%" id="dIA"  value=""> -->
                    
<!--                 </div> -->
<!--                <a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_default" onclick="noWriteText();" >不详</a> -->
<!--             </div>   -->
<!--             	<div class="weui_cell"> -->
<!--                   <div class="weui_cell_hd"><label class="weui_label">脉搏：</label></div> -->
<!--                 <div class="weui_cell_bd weui_cell_primary"> -->
<!--                     <input class="weui_input" type="number" pattern="[0-9]*" placeholder="次数" style="width:40%" id="pulse" value="">次/分钟 -->
<!--                 </div>    -->
<!--                  <a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_default" onclick="noWriteText();" >不详</a> -->
<!--             </div>  -->
                   <div class="weui_cell" style="border-bottom:1px solid #c0c0c0 ">
                  <div class="weui_cell_hd"><label class="weui_label">体温：</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="number" pattern="[0-9]*" placeholder="体温" style="width:40%" id="temperature"  value="">度
                </div>   
                 <a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_default" onclick="noWriteText();" >不详</a>
            </div> 
             
          <a href="javascript:;" class="weui_btn weui_btn_plain_primary" style="margin: 5px;" onclick="writeText();">提交</a>
        </div>
			</div>
<!-- 选择年龄结束 -->
<!-- 是否受伤开始 -->
			<div class="leftmenu_con" id="ishurt" style="background-color: #fff;width: 90%;height:auto;margin-top: 30%;margin-left: 5%;text-align: center;">
				<p class="m_tit" style="font-size: 16px;padding-top: 5px;">是否受伤？</p>
				<div class="weui_cells weui_cells_radio">
            <label class="weui_cell weui_check_label" for="x17">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>是</p>
                </div>
                <div class="weui_cell_ft">
                    <input type="radio" class="weui_check" name="radio2" id="x17" value="1">
                    <span class="weui_icon_checked"></span>
                </div>
            </label>
           <label class="weui_cell weui_check_label" for="x18">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>否</p>
                </div>
                <div class="weui_cell_ft">
                    <input type="radio" class="weui_check" name="radio2" id="x18" value="0">
                    <span class="weui_icon_checked"></span>
                </div>
            </label>
           
          <a href="javascript:;" class="weui_btn weui_btn_plain_primary" style="margin: 5px;" onclick="isHurt();">确定</a>
        </div>
			</div>
			<!-- 是否受伤结束 -->
		</section>
		<section class="theleftmenu" style="height: 627px; display: none;">
			<span class="bg_mark" style="display: none;"></span>
<!-- 			选择角色开始 -->
			<div class="theleftmenu_con"  style="background-color: #fff;width: 90%;height:auto;margin-top: 30%;margin-left: 5%;text-align: center;">
				<p class="m_tit" style="font-size: 18px;padding-top: 5px;">请选择角色</p>
			<div class="weui_cells weui_cells_radio" id="role">
        	</div> 
        <a href="javascript:;" class="weui_btn weui_btn_plain_primary" style="margin: 3px;" onclick="tijiao();">确定</a>
			</div>
<!-- 选择角色结束 -->
		</section>
		<!-- 			搜索部位 -->
				<section class="partmenu" style="height: 627px; display: none;">
			<span class="bg_mark" style="display: none;"></span>

			<div class="partmenu_con"  style="background-color: #FBF9FE;width: 90%;height:auto;margin-top: 5%;margin-left: 5%;text-align: center;">
					<input type="search" class="search" id="search" placeholder="请输入部位名称"  value="" oninput="toSearch();">
			<div  id="cont">
			<div class="weui_cell" style="width: 80%">
                <div class="weui_cell_bd weui_cell_primary">
                    <p></p>
                </div>
        </div>
        	</div> 
        	
        
        
            <a href="javascript:;" class="weui_btn weui_btn_plain_default" style="margin: 5px;" onclick="cancle();">取消</a>
			</div>
<!-- 搜索部位 结束 -->
		</section>
	</main>
	<div id="birth" style="display: none;"><%=(request.getSession().getAttribute("userModel"))==null?"0":m.getBirth()%></div>
	<div id="sex" style="display: none;"><%=(request.getSession().getAttribute("userModel"))==null?"":(m.getSex()==null?"0":(m.getSex()==1?"male":"female"))%></div>
</body>

<script type="text/javascript">
var basePath="<%=basePath%>";
</script>
<script type="text/javascript" src="<%=basePath%>js/diseaseSelfTest.js"></script>
</html>
